import request from '@/utils/request'
// 登录
export function loginApi(data) {
  return request({
    url: '/api/Pad/Login',
    method: 'post',
    data,
  })
}

export function loginOutApi(data) {
  return request({
    url: '/api/Pad/Logout',
    method: 'post',
    data,
  })
}

// 缝制确认
export function ConfirmApi(data) {
  return request({
    url: '/api/Pad/Confirm',
    method: 'post',
    data,
  })
}

// 下线
export function OffLineApi(data) {
  return request({
    url: '/api/Pad/OffLine',
    method: 'post',
    data,
  })
}

// 默认请求一次
export function defaultAxios(data) {
  return request({
    url: '/health',
    method: 'get',
    data,
  })
}

// 获取尺码列表
export function getSizeList(params) {
  return request({
    url: '/api/Pad/GetSizeNameList',
    method: 'get',
    params,
  })
}

// 设置尺码
export function setSize(data) {
  return request({
    url: '/api/Pad/SetSizeName',
    method: 'post',
    data,
  })
}


// 获取上线计划
export function getPlanList(data) {
  return request({
    url: '/api/Pad/GetPrepareList',
    method: 'get',
    params:data,
  })
}

// 获取制衣单
export function getClothingList(data) {
  return request({
    url: '/api/Pad/GetMatchList',
    method: 'get',
    params:data,
  })
}

// 重新上线
export function restartLine(data) {
  return request({
    url: '/api/Pad/UpLine',
    method: 'post',
    data,
  })
}


